//  -------------------- iSharePoint -------------------- //
// 
//  Company:	IT Complex, LLC
//  Project:	Smart.Common
//  File name:	FormEntityGeneric.cs
//  Developer:	Solomatov Igor
//  Created:	15.04.2012
// 
//  -------------------- iSharePoint -------------------- //

using Smart.Common.Entities;

namespace Smart.Common.Forms
{
	/// <summary>
	/// Form entity generic
	/// </summary>
	public class FormEntityGeneric : IFormEntity
	{
		/// <summary>
		/// Return entity identifier
		/// </summary>
		public Identifier ID { get; set; }

		/// <summary>
		/// Return whether this entity is new
		/// </summary>
		public bool IsNew { get; set; }

		/// <summary>
		/// Entity source
		/// </summary>
		public object Source { get; set; }

		/// <summary>
		/// Entity content type
		/// </summary>
		public string ContentTypeId { get; set; }

		/// <summary>
		/// Form entity generic
		/// </summary>
		public FormEntityGeneric(Identifier id, bool isNew, object source)
		{
			ID = id;
			IsNew = isNew;
			Source = source;
		}
	}
}